﻿<Window x:Class="Wra4Skype.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converter="clr-namespace:Wra4Skype"
    Title="Wra4Skype" Height="378" Width="471">
    <Window.Resources>
        <converter:SkypeStatusConverter x:Key="SkypeStatusConverter" />
        <converter:DisplayNameConverter x:Key="DisplayNameConverter" />
        <DataTemplate x:Key="Template">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Converter={StaticResource DisplayNameConverter}}" ToolTip="{Binding OnlineStatus}"  Foreground="{Binding OnlineStatus, Converter={StaticResource SkypeStatusConverter}}"/>
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" MinHeight="23"></RowDefinition>
            <RowDefinition Height="Auto" MinHeight="33"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <ListBox Grid.Row="0" Grid.ColumnSpan="2" Name="UserListBox" ItemTemplate="{StaticResource Template}" Margin="5" />
        <StackPanel HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0" Orientation="Horizontal" Margin="4" >
            <Button Height="23" HorizontalAlignment="Right" Name="AboutBoxButton" VerticalAlignment="Top" Width="97" Click="AboutBoxButton_Click" Margin="4,0,0,0">About...</Button>
        </StackPanel>
        <StackPanel HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" Orientation="Horizontal" Margin="4" >
            <Button Height="23" HorizontalAlignment="Right" Name="InviteButton" VerticalAlignment="Top" Width="97" Click="InviteButton_Click">Ask for Help</Button>
            <Button Height="23" HorizontalAlignment="Right" Name="CloseButton" VerticalAlignment="Top" Width="97" Click="CloseButton_Click" Margin="4,0,0,0">Close</Button>
        </StackPanel>
    </Grid>
</Window>
